package com.qingke.login;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.qingke.mapper.UserMapper;
import com.qingke.sqlclass.User;

public class test {
	public static List<User> selectUserlist(){
		SqlSession session = LoginDao.getMybatisSession();
		UserMapper usermap = session.getMapper(UserMapper.class);
		List<User> user = usermap.selectAll();
		return user;
	}
	
	public static void main(String[] args) {
		System.out.println(selectUserlist());
		
	}
}	
